05:27
2026-06-04
dev.to
large-language-models
Schema first, prompt second: valid JSON wasn't enough
A developer building Codenames AI, a web game where an LLM plays Codenames with users, found that enforcing JSON schema and Zod validation was insufficient for safe gameplay. The model consistently reβ¦